/*
 * LogManager.h
 *
 *  Created on: Oct 1, 2010
 *      Author: gabriel
 */

#ifndef LOGMANAGER_H_
#define LOGMANAGER_H_

#include <iostream>
#include <ctime>
#include <stdlib.h>
#include <stdio.h>
#include <fstream>

#include "../String/String.h"
#include "boost/date_time/gregorian/gregorian.hpp"
#include "boost/date_time/posix_time/posix_time.hpp"

namespace Utility
{
	namespace time
	{
		const std::string DefaultTime = "{d}/{O}/{Y} - {H}:{M}:{S}";
	}

	class LogManager
	{
	public:
		LogManager( std::string name , std::string format );
		virtual ~LogManager();

		bool saveLog ( std::string msg );
		bool setName ( std::string name );
		bool setFormat ( std::string format );

	private:
		std::string getInt ();

	protected:
		std::string logname;
		std::string dateformat;
	};
}

#endif /* LOGMANAGER_H_ */
